# -*- coding: utf-8 -*-
# @Time    : 2018/11/29 14:01
import os
import sys

path = os.path.abspath(os.path.dirname(os.getcwd()))
sys.path.append(path)
import requests
headers = {
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.12 Safari/537.36',
}
url = "http://www.shenzhenair.com/szair_B2C/flightsearch.action?orgCityCode=SZX&dstCityCode=WUH&hcType=DC&orgDate=2019-01-01"
req = requests.session()
req_two = req.get("http://www.shenzhenair.com/szair_B2C/index.html", headers=headers, timeout=360)
print(req_two.cookies.get_dict())
req.get("http://www.shenzhenair.com/szair_B2C/static/ued/plugins/layui/font/iconfont.ttf?v=220", headers=headers, timeout=360)
print(req_two.cookies.get_dict())